package com.cmas.platform.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cmas.platform.domain.Message;
import com.cmas.platform.domain.Notification;
import com.cmas.platform.vo.LastNotificationVo;
import com.cmas.platform.vo.NotificationVo;

import java.util.List;

/**
 * 推送表Service接口
 * @author su
 * @email 1218819874@qq.com
 * @date 2024-05-14
 */
public interface NotificationService extends IService<Notification> {


    /**
     * 查询推送表数组
     * @param notification 实体
     * @return 结果
     */
    public List<Notification> selectNotificationList(Notification notification);

    /**
     * 批量删除推送表
     * @param ids 需要删除的推送表ID集合
     * @return 结果
     */
    public int deleteNotificationByIds(String[] ids);

    List<NotificationVo> selectNotificationVoList(Notification notification);


    IPage<LastNotificationVo> selectLastNotificationVoList(Integer current, Integer size, Notification notification);

    Notification addNotification(Notification notification);

    int unReadNotificationCount(Notification notification);

    List<NotificationVo> selectNotificationDetailList(Notification notification);
}
